#include <iostream>
const double MINS_PER_DEG = 60.0;
const double SECS_PER_MIN = 60.0;
int main()
{
    using namespace std;
    int days;
    int hours;
    int minutes;
    int seconds;
    
    cout << "Enter the number of seconds:";
    cin >> seconds;
	int sec_ori = seconds;
	days = seconds/3600/24;
	seconds = seconds % (3600*24);
	hours = seconds/3600;
	seconds = seconds % 3600;
	minutes = seconds/60;
	seconds = seconds % 60;
	cout << sec_ori << " seconds = ";
    cout << days << " days, " << hours << " hours, " << minutes << " minutes, "
         << seconds << " seconds" << endl;
    return 0; 
}
